home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / ibits.z / ibits
Encoding:
Text File  |  2002-10-03  |  2.5 KB  |  60 lines

  1. IBITS(3I)                                             Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      IIBBIITTSS, IIIIBBIITTSS, JJIIBBIITTSS, KKIIBBIITTSS - Extracts a sequence of bits
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IIBBIITTSS (([II==]_i,, [PPOOSS==]_p_o_s,, [LLEENN==]_l_e_n))
  9.  
  10.      IIIIBBIITTSS (([II==]_i,, [PPOOSS==]_p_o_s,, [LLEENN==]_l_e_n))
  11.  
  12.      JJIIBBIITTSS (([II==]_i,, [PPOOSS==]_p_o_s,, [LLEENN==]_l_e_n))
  13.  
  14.      KKIIBBIITTSS (([II==]_i,, [PPOOSS==]_p_o_s,, [LLEENN==]_l_e_n))
  15.  
  16. IIMMPPLLEEMMEENNTTAATTIIOONN
  17.      UNICOS, UNICOS/mk, IRIX systems
  18.  
  19.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  20.  
  21. SSTTAANNDDAARRDDSS
  22.      Fortran
  23.  
  24.      Fortran extensions:  IIIIBBIITTSS, JJIIBBIITTSS, KKIIBBIITTSS
  25.  
  26. DDEESSCCRRIIPPTTIIOONN
  27.      The IIBBIITTSS, IIIIBBIITTSS, JJIIBBIITTSS, and KKIIBBIITTSS intrinsic functions extract a
  28.      sequence of bits.  They accept the following arguments:
  29.  
  30.      _i         Must be of type integer.  For IIIIBBIITTSS, must be of type
  31.                integer (KIND=2).  For JJIIBBIITTSS, must be of type integer
  32.                (KIND=4).  For KKIIBBIITTSS, must be of type integer (KIND=8).
  33.  
  34.      _p_o_s       Must be of type integer.  It must be nonnegative and _p_o_s +
  35.                _l_e_n must be less than or equal to BBIITT__SSIIZZEE (_i).
  36.  
  37.      _l_e_n       Must be of type integer and nonnegative.
  38.  
  39.      These are elemental intrinsic functions.  The names of these
  40.      intrinsics cannot be passed as arguments.
  41.  
  42. RREETTUURRNN VVAALLUUEESS
  43.      The result type and type parameter are the same as _i.  The result has
  44.      the value of the sequence of _l_e_n bits in _i beginning at bit _p_o_s
  45.      right-adjusted and with all other bits zero.
  46.  
  47.      The bit model defines the model for the interpretation of an integer
  48.      value as a sequence of bits.  For more information on the bit model,
  49.      see the MMOODDEELLSS(3I) man page.
  50.  
  51. EEXXAAMMPPLLEESS
  52.      IIBBIITTSS((1144,,11,,33)) has the value 7.  In this example, the bits are numbered
  53.      from right to left, so they are extracted from right to left.
  54.  
  55. SSEEEE AALLSSOO
  56.      MMOODDEELLSS(3I)
  57.  
  58.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  59.      man page.
  60.